<?php
class Weibo
{
    /** @var int */
    protected $id = 0;
    /** @var int */
    protected $user_id = 0;
    /** @var string */
    protected $name = null;
    /** @var string */
    protected $token = null;
     /** @var int */
    protected $weibo_id = 0;
    /** @var string */
    protected $photos = null;
    /** @var string */
    protected $gender = null;
    /** @var string */
    protected $description = null;
    /** @var string */
    protected $data_json = null;
    /** @var string */
    protected $location = '北京';


    /**
    * @return array
    */
    public function getDataArray()
    {
    	return array(
    		'id'          => $this->getId(),
            'user_id'     => $this->getUserId(),
            'name'        => $this->getName(),
            'token'       => $this->getToken(),
            'weibo_id'    => $this->getWeiboId(),
            'photos'      => $this->getPhotos(),
            'gender'      => $this->getGender(),
            'description' => $this->getDescription(),
            'data_json'   => $this->getData_json(),
            'location'    => $this->getLocation()
        );
    }
    /**
     * @param int $id
     */
    public function setId($id)
    {
    	$this -> id = $id;
    }

    /**
     * @return int
     */
    public function getId()
    {
    	return $this -> id;
    }

	/**
     * @param int $user_id
     */
	public function setUserId($user_id)
	{
		$this -> user_id = $user_id;
	}

	/**
	* @return int
	*/
	public function getUserId()
	{
		return $this -> user_id;
	}

	/**
     * @param string $name
     */
	public function setName($name)
	{
		$this -> name = $name;
	}

	/**
     * @return string
     */
	public function getName()
	{
		return $this -> name;
	}

	/**
     * @param string $token
     */
	public function setToken($token)
	{
		$this -> token = $token;
	}

	/**
     * @return string
     */
	public function getToken()
	{
		return $this -> token;
	}

	/**
     * @param int $weibo_id
     */
	public function setWeiboId($weibo_id)
	{
		$this -> weibo_id = $weibo_id;
	}

	/**
	* @return int
	*/
	public function getWeiboId()
	{
		return $this -> weibo_id;
	}

	/**
     * @param string $photos
     */
	public function setPhotos($photos)
	{
		$this -> photos = $photos;
	}

	/**
     * @return string 
     */
	public function getPhotos()
	{
		return $this -> photos;
	}

	/**
     * @param string $gender
     */
	public function setGender($gender)
	{
		$this -> gender = $gender;
	}

	/**
     * @return string
     */
	public function getGender()
	{
		return $this -> gender;
	}

	/**
     * @param string $description
     */
	public function setDescription($description)
	{
		$this -> description = $description;
	}

	/**
	* @return string
	*/
	public function getDescription()
	{
		return $this -> description;
	}

	/**
     * @param string $data_json
     */
	public function setData_json($data_json)
	{
		$this -> data_json = $data_json;
	}

	/**
     * @return string
     */
	public function getData_json()
	{
		return $this -> data_json;
	}

    /**
     * @param string $location
     */
    public function setLocation($location)
    {
        $this->location=$location;
    }

    /**
     * @return string
     */
    public function getLocation()
    {
        return $this->location;
    }
 }